<?php

/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

/**
 *
 * @package    symfony
 * @subpackage plugin
 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
 * @version    SVN: $Id: sfGuardRouting.class.php 15757 2009-02-24 21:15:40Z Kris.Wallsmith $
 */
class sfCustomWidgetsRouting
{
	/**
   * Listens to the routing.load_configuration event.
   *
   * @param sfEvent An sfEvent instance
   */
	static public function listenToRoutingLoadConfigurationEvent(sfEvent $event)
	{
		$r = $event->getSubject();



		$r->prependRoute('custom_widgets_bind_ajax', new sfRoute('/bind.ajax',array(
		'module'  => 'sfCustomWidgets',
		'action'  => 'bind_ajax'
		)));

		$r->prependRoute('custom_widgets_bind_ajax_tree', new sfRoute('/tree_bind.ajax',array(
		'module'  => 'sfCustomWidgets',
		'action'  => 'bind_ajax_tree'
		)));

		$r->prependRoute('custom_widgets_check_user_name_unique_ajax', new sfRoute('/check_user_unique.ajax',array(
		'module'  => 'sfCustomWidgets',
		'action'  => 'check_user_unique'
		)));
	}

}
